package com.dnjn.happiness.emo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dnjn.happiness.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Min;
import java.math.BigDecimal;

/**
 * <p>
 * 风控
 * </p>
 *
 * @author Amber
 * @since 2023-10-09
 */
@Getter
@Setter
@TableName("emo_risk")
public class Risk extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * PK
     */

    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "risk_id", type = IdType.ASSIGN_ID)
    private Long riskId;

    private String label;


    private String rtype;

    


    /**
     * Y-N
     */
    private String selected;

    /**
     * 权重
     */
    @Min(value = 0, message = "weight 权重不能小于0")
    private BigDecimal weight;

    private String tableName;
    private String fkColumnName;

    /**
     * 是否删除|0-否 1-是|valid
     */
    private String deleted;
}
